<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>服务推荐 - 社交服务平台</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        /* 基础样式 */
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f3f4f6;
            color: #111827;
        }
        
        .container {
            max-width: 1400px;
        }
        
        /* 导航栏 */
        .navbar {
            background-color: white;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: #3b82f6;
            text-decoration: none;
        }
        
        /* 服务卡片通用样式 */
        .service-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
            transition: transform 0.2s, box-shadow 0.2s;
            overflow: hidden;
        }
        
        .service-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        
        .service-author {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .service-stats {
            display: flex;
            align-items: center;
            gap: 16px;
            color: #6b7280;
            font-size: 0.85rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .service-actions {
            display: flex;
            gap: 12px;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: #6b7280;
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: color 0.2s;
            padding: 4px 8px;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            color: #3b82f6;
            background-color: #f3f4f6;
        }
        
        .action-btn.liked {
            color: #ef4444;
        }
        
        .action-btn.saved {
            color: #f59e0b;
        }
        
        /* 网格布局服务卡片 */
        .grid-service-card .service-content {
            padding: 16px;
        }
        
        .grid-service-card .service-title {
            font-weight: 600;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .grid-service-card .service-description {
            color: #6b7280;
            font-size: 0.85rem;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .grid-service-card .image-container {
            height: 180px;
            overflow: hidden;
            position: relative;
        }
        
        .grid-service-card .service-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .grid-service-card:hover .service-image {
            transform: scale(1.05);
        }
        
        .grid-service-card .multiple-images {
            position: relative;
        }
        
        .grid-service-card .image-count {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 0.75rem;
            padding: 2px 6px;
            border-radius: 4px;
        }
        
        /* 列表布局服务卡片 */
        .list-service-card {
            display: flex;
            margin-bottom: 16px;
        }
        
        .list-service-card .image-container {
            width: 180px;
            height: 140px;
            flex-shrink: 0;
            overflow: hidden;
        }
        
        .list-service-card .service-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .list-service-card:hover .service-image {
            transform: scale(1.05);
        }
        
        .list-service-card .service-content {
            flex: 1;
            padding: 16px;
            display: flex;
            flex-direction: column;
        }
        
        .list-service-card .service-title {
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .list-service-card .service-description {
            color: #6b7280;
            font-size: 0.9rem;
            margin-bottom: 12px;
            flex: 1;
        }
        
        .list-service-card .service-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        /* 特色服务布局 */
        .featured-service {
            margin-bottom: 32px;
        }
        
        .featured-service .image-container {
            height: 300px;
            overflow: hidden;
            position: relative;
        }
        
        .featured-service .service-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        
        .featured-service:hover .service-image {
            transform: scale(1.03);
        }
        
        .featured-service .service-content {
            padding: 24px;
        }
        
        .featured-service .service-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 12px;
        }
        
        .featured-service .service-description {
            color: #6b7280;
            margin-bottom: 16px;
            line-height: 1.6;
        }
        
        /* 多图服务样式 */
        .multi-image-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-gap: 4px;
            height: 180px;
        }
        
        .multi-image-grid .service-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .multi-image-grid .image-1 {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
        }
        
        .multi-image-grid .image-2 {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
        }
        
        .multi-image-grid .image-3 {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
        }
        
        .multi-image-grid .image-4 {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
        }
        
        .multi-image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }
        
        /* 无图服务样式 */
        .no-image-card {
            border-left: 4px solid #3b82f6;
        }
        
        .no-image-card .service-content {
            padding: 20px;
        }
        
        /* 布局切换按钮 */
        .view-controls {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
        }
        
        .view-btn {
            background-color: white;
            border: 1px solid #e5e7eb;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }
        
        .view-btn.active {
            background-color: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }
        
        .view-btn:hover:not(.active) {
            background-color: #f3f4f6;
        }
        
        /* 分类筛选 */
        .categories {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 24px;
        }
        
        .category-btn {
            background-color: white;
            border: 1px solid #e5e7eb;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .category-btn.active {
            background-color: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }
        
        .category-btn:hover:not(.active) {
            border-color: #d1d5db;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .list-service-card {
                flex-direction: column;
            }
            
            .list-service-card .image-container {
                width: 100%;
                height: 200px;
            }
            
            .featured-service .image-container {
                height: 220px;
            }
        }
        
        @media (max-width: 768px) {
            .grid-service-card .image-container {
                height: 140px;
            }
            
            .featured-service .image-container {
                height: 180px;
            }
            
            .featured-service .service-title {
                font-size: 1.25rem;
            }
        }
        
        @media (max-width: 576px) {
            .service-stats {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .list-service-card .service-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .service-actions {
                width: 100%;
                justify-content: space-between;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3">
        <div class="container">
            <a href="#" class="logo">ServiceHub</a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse justify-content-center" id="navbarContent">
                <div class="d-flex align-items-center">
                    <input type="text" class="form-control me-2" placeholder="搜索服务...">
                    <button class="btn btn-primary">搜索</button>
                </div>
            </div>
            
            <div class="d-flex gap-3">
                <a href="#" class="nav-link text-dark">
                    <i class="fas fa-home"></i>
                </a>
                <a href="#" class="nav-link text-dark">
                    <i class="fas fa-bell"></i>
                </a>
                <a href="#" class="nav-link text-dark">
                    <i class="fas fa-user-circle fa-lg"></i>
                </a>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="container py-5">
        <h1 class="mb-5">推荐服务</h1>
        
        <!-- 分类筛选 -->
        <div class="categories">
            <button class="category-btn active">全部服务</button>
            <button class="category-btn">设计创意</button>
            <button class="category-btn">技术开发</button>
            <button class="category-btn">教育培训</button>
            <button class="category-btn">生活服务</button>
            <button class="category-btn">营销推广</button>
            <button class="category-btn">咨询顾问</button>
        </div>
        
        <!-- 布局切换 -->
        <div class="view-controls">
            <button class="view-btn active" id="gridViewBtn">
                <i class="fas fa-th"></i> 网格视图
            </button>
            <button class="view-btn" id="listViewBtn">
                <i class="fas fa-list"></i> 列表视图
            </button>
        </div>
        
        <!-- 特色服务 (大图布局) -->
        <div class="featured-service service-card">
            <div class="image-container">
                <img src="https://picsum.photos/1200/400?random=10" alt="专业网站设计服务" class="service-image">
            </div>
            <div class="service-content">
                <div class="service-author">
                    <img src="https://picsum.photos/100/100?random=1" alt="张设计师" class="author-avatar">
                    <span class="author-name">张设计师</span>
                </div>
                <h2 class="service-title">专业网站设计与开发服务 - 打造您的品牌形象</h2>
                <p class="service-description">提供从品牌策划、UI设计到前端开发的一站式网站建设服务。我们专注于创建具有视觉吸引力和良好用户体验的网站，帮助您在数字世界中脱颖而出。服务包括响应式网站设计、电商网站开发、企业官网建设等，满足不同行业的需求。</p>
                <div class="d-flex justify-content-between align-items-center">
                    <div class="service-stats">
                        <div class="stat-item">
                            <i class="fas fa-eye"></i>
                            <span>2.5k</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-comment"></i>
                            <span>128</span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-star"></i>
                            <span>4.9</span>
                        </div>
                    </div>
                    <div class="service-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-heart"></i>
                            <span>342</span>
                        </button>
                        <button class="action-btn save-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 网格布局服务 -->
        <h2 class="mb-4">热门服务</h2>
        <div class="services-grid" id="servicesContainer">
            <div class="row gap-4">
                <!-- 单图服务 -->
                <div class="col-lg-4 col-md-6 grid-service-card service-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=20" alt="Logo设计服务" class="service-image">
                    </div>
                    <div class="service-content">
                        <div class="service-author">
                            <img src="https://picsum.photos/100/100?random=2" alt="李创意" class="author-avatar">
                            <span class="author-name">李创意</span>
                        </div>
                        <h3 class="service-title">专业Logo设计 - 塑造独特品牌标识</h3>
                        <p class="service-description">提供原创Logo设计服务，根据您的品牌定位和目标受众，打造独特且具有辨识度的品牌标识。</p>
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="service-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>1.2k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>86</span>
                                </div>
                            </div>
                            <div class="service-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>215</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 多图服务 -->
                <div class="col-lg-4 col-md-6 grid-service-card service-card">
                    <div class="image-container multiple-images">
                        <div class="multi-image-grid">
                            <img src="https://picsum.photos/300/300?random=31" alt="摄影作品1" class="service-image image-1">
                            <img src="https://picsum.photos/300/300?random=32" alt="摄影作品2" class="service-image image-2">
                            <img src="https://picsum.photos/300/300?random=33" alt="摄影作品3" class="service-image image-3">
                            <img src="https://picsum.photos/300/300?random=34" alt="摄影作品4" class="service-image image-4">
                        </div>
                        <div class="image-count">+8</div>
                    </div>
                    <div class="service-content">
                        <div class="service-author">
                            <img src="https://picsum.photos/100/100?random=3" alt="王摄影" class="author-avatar">
                            <span class="author-name">王摄影</span>
                        </div>
                        <h3 class="service-title">商业产品摄影服务 - 提升产品吸引力</h3>
                        <p class="service-description">专业商业摄影，为您的产品提供高质量图片，适合电商平台、宣传材料和社交媒体展示。</p>
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="service-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>956</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>52</span>
                                </div>
                            </div>
                            <div class="service-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>187</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图服务 -->
                <div class="col-lg-4 col-md-6 grid-service-card service-card no-image-card">
                    <div class="service-content">
                        <div class="service-author">
                            <img src="https://picsum.photos/100/100?random=4" alt="赵律师" class="author-avatar">
                            <span class="author-name">赵律师</span>
                        </div>
                        <h3 class="service-title">法律咨询服务 - 专业解答法律问题</h3>
                        <p class="service-description">提供合同审查、知识产权保护、劳动纠纷等方面的法律咨询服务，专业律师团队为您保驾护航。</p>
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="service-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>782</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>43</span>
                                </div>
                            </div>
                            <div class="service-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>124</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 单图服务 -->
                <div class="col-lg-4 col-md-6 grid-service-card service-card">
                    <div class="image-container">
                        <img src="https://picsum.photos/600/400?random=40" alt="翻译服务" class="service-image">
                    </div>
                    <div class="service-content">
                        <div class="service-author">
                            <img src="https://picsum.photos/100/100?random=5" alt="陈翻译" class="author-avatar">
                            <span class="author-name">陈翻译</span>
                        </div>
                        <h3 class="service-title">专业翻译服务 - 多语言精准翻译</h3>
                        <p class="service-description">提供英语、日语、法语等多语种翻译服务，涵盖商业文档、法律文件、技术手册等多种类型。</p>
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="service-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>654</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>31</span>
                                </div>
                            </div>
                            <div class="service-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>98</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 多图服务 -->
                <div class="col-lg-4 col-md-6 grid-service-card service-card">
                    <div class="image-container multiple-images">
                        <div class="multi-image-grid">
                            <img src="https://picsum.photos/300/300?random=51" alt="烹饪课程1" class="service-image image-1">
                            <img src="https://picsum.photos/300/300?random=52" alt="烹饪课程2" class="service-image image-2">
                        </div>
                        <div class="image-count">+3</div>
                    </div>
                    <div class="service-content">
                        <div class="service-author">
                            <img src="https://picsum.photos/100/100?random=6" alt="刘厨师" class="author-avatar">
                            <span class="author-name">刘厨师</span>
                        </div>
                        <h3 class="service-title">线上烹饪课程 - 学习专业厨艺</h3>
                        <p class="service-description">从零开始的烹饪课程，适合初学者，学习中西餐制作技巧，提供详细视频教程和在线指导。</p>
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="service-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>1.5k</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>97</span>
                                </div>
                            </div>
                            <div class="service-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>326</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 无图服务 -->
                <div class="col-lg-4 col-md-6 grid-service-card service-card no-image-card">
                    <div class="service-content">
                        <div class="service-author">
                            <img src="https://picsum.photos/100/100?random=7" alt="孙老师" class="author-avatar">
                            <span class="author-name">孙老师</span>
                        </div>
                        <h3 class="service-title">雅思托福辅导 - 一对一在线教学</h3>
                        <p class="service-description">经验丰富的外教团队提供一对一雅思托福辅导，定制学习计划，提升听说读写各项技能。</p>
                        <div class="d-flex justify-content-between align-items-center">
                            <div class="service-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>892</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i>
                                    <span>64</span>
                                </div>
                            </div>
                            <div class="service-actions">
                                <button class="action-btn like-btn">
                                    <i class="far fa-heart"></i>
                                    <span>178</span>
                                </button>
                                <button class="action-btn save-btn">
                                    <i class="far fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 列表布局服务 (默认隐藏) -->
        <div class="services-list" id="listViewContainer" style="display: none;">
            <!-- 列表项1 -->
            <div class="list-service-card service-card">
                <div class="image-container">
                    <img src="https://picsum.photos/600/400?random=20" alt="Logo设计服务" class="service-image">
                </div>
                <div class="service-content">
                    <div class="service-author">
                        <img src="https://picsum.photos/100/100?random=2" alt="李创意" class="author-avatar">
                        <span class="author-name">李创意</span>
                    </div>
                    <h3 class="service-title">专业Logo设计 - 塑造独特品牌标识</h3>
                    <p class="service-description">提供原创Logo设计服务，根据您的品牌定位和目标受众，打造独特且具有辨识度的品牌标识。我们的设计流程包括需求分析、创意构思、方案设计和修改完善，确保最终作品符合您的期望。所有设计均提供源文件，让您可以灵活应用于各种场景。</p>
                    <div class="service-footer">
                        <div class="service-stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>1.2k 浏览</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>86 评论</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-star"></i>
                                <span>4.8 评分</span>
                            </div>
                        </div>
                        <div class="service-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>215</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 列表项2 -->
            <div class="list-service-card service-card">
                <div class="image-container multiple-images">
                    <div class="multi-image-grid">
                        <img src="https://picsum.photos/300/300?random=31" alt="摄影作品1" class="service-image image-1">
                        <img src="https://picsum.photos/300/300?random=32" alt="摄影作品2" class="service-image image-2">
                        <img src="https://picsum.photos/300/300?random=33" alt="摄影作品3" class="service-image image-3">
                        <img src="https://picsum.photos/300/300?random=34" alt="摄影作品4" class="service-image image-4">
                    </div>
                    <div class="image-count">+8</div>
                </div>
                <div class="service-content">
                    <div class="service-author">
                        <img src="https://picsum.photos/100/100?random=3" alt="王摄影" class="author-avatar">
                        <span class="author-name">王摄影</span>
                    </div>
                    <h3 class="service-title">商业产品摄影服务 - 提升产品吸引力</h3>
                    <p class="service-description">专业商业摄影，为您的产品提供高质量图片，适合电商平台、宣传材料和社交媒体展示。我们拥有专业摄影设备和工作室，提供产品摆放、灯光布置和后期修图一站式服务，让您的产品在竞争中脱颖而出。</p>
                    <div class="service-footer">
                        <div class="service-stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>956 浏览</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>52 评论</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-star"></i>
                                <span>4.7 评分</span>
                            </div>
                        </div>
                        <div class="service-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>187</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 列表项3 (无图) -->
            <div class="list-service-card service-card no-image-card">
                <div class="service-content">
                    <div class="service-author">
                        <img src="https://picsum.photos/100/100?random=4" alt="赵律师" class="author-avatar">
                        <span class="author-name">赵律师</span>
                    </div>
                    <h3 class="service-title">法律咨询服务 - 专业解答法律问题</h3>
                    <p class="service-description">提供合同审查、知识产权保护、劳动纠纷等方面的法律咨询服务，专业律师团队为您保驾护航。我们提供在线咨询和文档审查服务，确保您的合法权益得到最大程度的保护。无论是个人还是企业客户，我们都能提供针对性的法律解决方案。</p>
                    <div class="service-footer">
                        <div class="service-stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>782 浏览</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>43 评论</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-star"></i>
                                <span>4.9 评分</span>
                            </div>
                        </div>
                        <div class="service-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>124</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 列表项4 -->
            <div class="list-service-card service-card">
                <div class="image-container">
                    <img src="https://picsum.photos/600/400?random=40" alt="翻译服务" class="service-image">
                </div>
                <div class="service-content">
                    <div class="service-author">
                        <img src="https://picsum.photos/100/100?random=5" alt="陈翻译" class="author-avatar">
                        <span class="author-name">陈翻译</span>
                    </div>
                    <h3 class="service-title">专业翻译服务 - 多语言精准翻译</h3>
                    <p class="service-description">提供英语、日语、法语等多语种翻译服务，涵盖商业文档、法律文件、技术手册等多种类型。我们的翻译团队由专业译员组成，确保翻译准确且符合行业规范。提供加急服务和格式排版，满足您的各种需求。</p>
                    <div class="service-footer">
                        <div class="service-stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i>
                                <span>654 浏览</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>31 评论</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-star"></i>
                                <span>4.6 评分</span>
                            </div>
                        </div>
                        <div class="service-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>98</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="text-center mt-6">
            <button class="btn btn-outline-primary px-6 py-2">
                加载更多服务
                <i class="fas fa-chevron-down ms-2"></i>
            </button>
        </div>
    </div>
    

    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>

        
        // 点赞功能
        document.querySelectorAll('.like-btn').forEach(button => {
            button.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const countElement = this.querySelector('span');
                let count = parseInt(countElement.textContent);
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('liked');
                    countElement.textContent = (count + 1).toString();
                    showNotification('点赞成功');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('liked');
                    countElement.textContent = (count - 1).toString();
                    showNotification('已取消点赞');
                }
            });
        });
        
        // 收藏功能
        document.querySelectorAll('.save-btn').forEach(button => {
            button.addEventListener('click', function() {
                const icon = this.querySelector('i');
                
                if (icon.classList.contains('far')) {
                    // 收藏
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.classList.add('saved');
                    showNotification('已收藏该服务');
                } else {
                    // 取消收藏
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.classList.remove('saved');
                    showNotification('已取消收藏');
                }
            });
        });
        
        // 布局切换
        const gridViewBtn = document.getElementById('gridViewBtn');
        const listViewBtn = document.getElementById('listViewBtn');
        const gridViewContainer = document.getElementById('servicesContainer');
        const listViewContainer = document.getElementById('listViewContainer');
        
        gridViewBtn.addEventListener('click', function() {
            gridViewBtn.classList.add('active');
            listViewBtn.classList.remove('active');
            gridViewContainer.style.display = 'block';
            listViewContainer.style.display = 'none';
        });
        
        listViewBtn.addEventListener('click', function() {
            listViewBtn.classList.add('active');
            gridViewBtn.classList.remove('active');
            listViewContainer.style.display = 'block';
            gridViewContainer.style.display = 'none';
        });
        
        // 分类筛选
        document.querySelectorAll('.category-btn').forEach(button => {
            button.addEventListener('click', function() {
                document.querySelectorAll('.category-btn').forEach(btn => {
                    btn.classList.remove('active');
                });
                this.classList.add('active');
                showNotification(`已筛选 ${this.textContent}`);
                // 实际应用中这里会根据分类筛选服务
            });
        });
    </script>
</body>
</html>

